package com.jic.member.mapper.power;

import java.lang.Long;
import java.util.List;


import com.jic.member.entity.power.MegradeRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级权益关联表
 * @author : 
 * @email : 
 * @since : 2020-04-04 10:45:04
 * @version : v1.0.0
 */
@Mapper
public interface  MegradeRuleMapper {

    long insert(MegradeRule megradeRule);

    long delete(Long id);

    long update(MegradeRule megradeRule);

    MegradeRule queryByPrimaryKey(Long id);

    List<MegradeRule> query(MegradeRule megradeRule);

    List<MegradeRule> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("megradeRule") MegradeRule megradeRule);

    long queryPageCount(MegradeRule megradeRule);

    long deleteByDeptId(@Param("deptId")Long deptId, @Param("gradeId")Long gradeId);

    long queryPageCountPlural(MegradeRule megradeRule);

    List<MegradeRule> queryPageForLook(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("megradeRule") MegradeRule megradeRule);

    long queryPageCountForLook(MegradeRule megradeRule);

    List<MegradeRule> queryMegradeRuleSimple(@Param("megradeRule") MegradeRule megradeRule);
}